package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IOrderDetail
import fhp.hlhj.giantfold.javaBean.OrderBean
import fhp.hlhj.giantfold.module.OrderDetailModule

/**
 * Created by Administrator on 2018\2\8 0008.
 */
class OrderDetailPresenter(private val iOrderDetail: IOrderDetail) : OrderDetailModule.onRespListner {
        private val module=OrderDetailModule()

    fun getOrder(params: HttpParams){
        module.getOrder(params,this)
    }

    override fun showLoading() {
        iOrderDetail.showLoading()
    }
    override fun onRsp(orderBean: OrderBean) {
        iOrderDetail.getOrderDetail(orderBean)
    }
}